import { createMemoryHistory, createRouter, createWebHashHistory } from "vue-router";

const enterpriseCockpit = () => import('../views/enterpriseCockpit.vue')
const predictionOrWarning = () => import('../views/predictionOrWarning.vue')
const productionSchedule = () => import('../views/productionSchedule.vue')

const routes = [
    {
        path:"/",
        name:"productionSchedule",
        component:productionSchedule,
        meta:{
            title:"生产进度看板"
        }
    },
    {
        path:"/predictionOrWarning",
        name:"predictionOrWarning",
        component:predictionOrWarning,
        meta:{
            title:"预测/预警"
        }
    },
    {
        path:"/enterpriseCockpit",
        name:"enterpriseCockpit",
        component:enterpriseCockpit,
        mete:{
            title:"企业驾驶舱"
        }
    }
]

const route = createRouter({
    history:createMemoryHistory(),
    routes
})

export {route}